<?php


namespace app\index\model;


use think\Model;
use traits\model\SoftDelete;

class BaseModel extends Model
{
    use SoftDelete;

    protected $hidden = ['deletetime', 'createtime', 'updatetime', 'onlineswitch', 'weigh', 'typedata'];

    protected $deleteTime = "deletetime";

    public function getImageAttr($value)
    {
        return $value ? 'http://lclook.oss-cn-shenzhen.aliyuncs.com/'.$value : '';
    }

}